package com.hl.springcloud.config;

import org.springframework.boot.actuate.health.Health;
import org.springframework.boot.actuate.health.HealthIndicator;
import org.springframework.stereotype.Component;

/**
 * Created by aaron on 2017/2/22.
 */
@Component
public class MyHelth implements HealthIndicator {
    /**
     * Return an indication of health.
     *
     * @return the health for
     */
    @Override
    public Health health() {
        return Health.up().withDetail("hgc","hao").build();
    }
}
